package club.westudy.distributed.lock;

import club.westudy.distributed.lock.domains.CreateOrderRequest;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        IOrderService orderService = ctx.getBean(IOrderService.class);
        CreateOrderRequest request = new CreateOrderRequest();
        request.setOrderNo("0001");
        request.setCount(123);
        orderService.create(request);
    }
}
